package com.yxh.www.author.api;

import com.yxh.www.author.domain.SmServerApi;
import com.yxh.www.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author yangxiaohui
 * @since 2020/5/13
 */
@FeignClient(value = "author-server", contextId = "authorSmServerApi")
public interface AuthorSmServerApiApi {
    /**
     * 根据第三方账户ID 获取可访问接口列表
     *
     * @param smAccountId 第三方账户ID
     * @return 统一响应 {@link Result<List>} 实体类型 {@link SmServerApi}
     */
    @GetMapping("/smServerApi/listSmServerApiBySmAccountId")
    Result<List<SmServerApi>> listSmServerApiBySmAccountId(@RequestParam String smAccountId);
}
